<script>
	export default {
		onLaunch: function() {
			const that = this
			// 获取手机顶部状态栏高度
			uni.getSystemInfo({
				success(res) {
					that.globalData.statusBarHeight = res.statusBarHeight;
					that.globalData.windowWidth = res.windowWidth
				}
			})
			// 获取胶囊按钮信息
			let menuInfo = uni.getMenuButtonBoundingClientRect()
			// 胶囊高度
			that.globalData.menuHeight = menuInfo.height
			// 顶部功能栏高度 = 胶囊按钮高度 + 距离顶部高度 + 设定底部距离
			that.globalData.menuBarHeight = menuInfo.height + menuInfo.top + 10
			// 顶部功能栏右边距 = 屏幕宽度 - 胶囊左边界到页面可视范围的左边界
			that.globalData.menuBarRight = that.globalData.windowWidth - menuInfo.left
		},
		globalData: {
			windowWidth: null, // 当前屏幕宽度
			statusBarHeight: null, // 顶部状态栏高度
			menuHeight: null, // 胶囊高度
			menuBarHeight: null, // 顶部功能栏高度
			menuBarRight: null, // 胶囊按钮右边距
		}
	}
</script>

<style lang="scss">
	@import "@/components/gaoyia-parse/parse.css";
	@import "@/uni_modules/uview-ui/index.scss";
	@import "@/static/color-ui.css";
	@import "@/static/icon.css";
	/*每个页面公共css */
	body,
	html {
		background-color: #f1f1f1;
	}

	.container {
		box-sizing: border-box;
		padding: $self-page-padding;
	}

	.layout {
		background-color: #3bff31;
		border: 2rpx solid #23991d;
	}

	button {
		padding: 0;
		margin: 0;
		border: none;
		// background-color: ;
	}

	.m-btn {
		display: flex;
		justify-content: center;
		margin-top: 20rpx;
		.btn-block {
			width: 200rpx;
			padding: 0 20rpx;
		}
	}
	.c-headline {
		width: 100%;
		padding: 30rpx 0;
		box-sizing: border-box;
		font-size: 42rpx;
		font-weight: bold;
		letter-spacing: 6rpx;
		background-clip: padding-box;
		.headline-content{
			width: 100%;
			background-size: 100% 100%;
		}
	}.c-cell{
		background-color: #fff;
	}
</style>
